package swe.article;

import java.util.ArrayList;
import java.util.List;

public class TestArticle {
	public static void main(String[] args) {
		ArticleDAO dao = new ArticleDAO("/workspace/articles.ser");
//		Article a1 = new Article("BMW X1", "100.000 km top Ausstattung", "blup.img", 10000, Category.SUV);
//		Article a2 = new Article("BMW X2", "200.000 km Garagengeplflegt", "blup.img", 20000, Category.SUV);
//		Article a3 = new Article("BMW X3", "10.000 km 2. Wagen", "blup.img", 40000,Category.KOMBI);
		Article a4 = new Article("VW Golf1", "700.000 km Bastlerwagen", "blup.img", 1000);
		Article a5 = new Article("VW  Golf2", "150.000 km der Klassiker", "blup.img", 5000);
		Article a6 = new Article("VW Golf3", "300.000 km Arbeitstier", "blup.img", 7000);
		
		List<Article> list = new ArrayList<Article>();
//		list.add(a1);
//		list.add(a2);
//		list.add(a3);
		list.add(a4);
		list.add(a5);
		list.add(a6);
		dao.save(list);
		
	}
}
